package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 【请填写功能名称】对象 lend_record
 *
 * @author ruoyi
 * @date 2022-12-08
 */
@Data
@Accessors(chain = true)
public class LendRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id 主键自增 */
    private Long id;

    /** 书籍ID */
    @Excel(name = "书籍ID")
    private Long bookId;

    @Excel(name = "书籍名称")
    private String bookName;

    /** 学号 */
    @Excel(name = "学号")
    private String sno;

    /** 归还状态:0 未归还 1 已归还 */
    @Excel(name = "归还状态:0 未归还 1 已归还",dictType = "book_lend_status")
    private String status;

    /** 借阅时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借阅时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lendTime;

    /** 截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deadline;

    /** 归还时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnTime;

}
